package com.ailight.smart.api.strategy.impl;

import com.ailight.smart.api.client.Esp8266NettyClient;
import com.ailight.smart.api.enums.OperationTypeEnums;
import com.ailight.smart.api.strategy.LightOperationStrategy;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class AutoLightOperationStrategy implements LightOperationStrategy {
    private final Esp8266NettyClient esp8266NettyClient;
    @Override
    public void operationLight(OperationTypeEnums enums) {
        // 开启自动模式
        esp8266NettyClient.sendCommand(enums);
    }
}
